#include<linux/module.h>
#include<linux/sched.h>
#include<linux/pid.h>
MODULE_LICENSE("GPL");
static int __init __task_pid_nr_ns_init(void)
{
	printk("into __task_pid_nr_ns_init.\n");

	struct pid *kpid=find_get_pid(current->pid);

	struct task_struct *task=pid_task(kpid,PIDTYPE_PID);

	pid_t result1=__task_pid_nr_ns(task,PIDTYPE_PID,kpid->numbers[kpid->level].ns);
	printk("the pid of the find_get_pid is : %d\n",kpid->numbers[kpid->level].nr);
	printk("the result if the __task_pid_nr_ns is :%d\n",result1);
	printk("the pid of current thread is :%d\n",current->pid);
	printk("out __task_pid_nr_ns_init.\n");
	return 0;
}
static void __exit __task_pid_nr_ns_exit(void)
{
	printk("goodbye __task_pid_nr_ns\n");
}
module_init(__task_pid_nr_ns_init);
module_exit(__task_pid_nr_ns_exit);
